import { signalTypeMap } from '../widgetLabelMapper'

export const widgetChartStatv = {
  code: 'widget-chart-statv',
  type: 'charts',
  tabName: '图表',
  label: signalTypeMap['STATV'],
  options: {
    // 配置
    setup: {
      layerName: 'STATV',
      backgroundColor: 'rgba(6,25,82,.8)',
      lineColor: '#58B8FB',
      lineWidth: 2,
      lineSmooth: true,
      lineAreaStyle: true,
      areaStyle: false,
      barColor: '#58B8FB',
      barColor2: '#F7B824',
      titleColor: '#fff',
      titleFontSize: 16,
      subtitleColor: '#fff',
      subtitleFontSize: 16,
      legendColor: 'rgba(255, 215, 0, 1)',
      legendFontSize: 12,
      legendFontColor: '#fff',
      toolboxIconColor: '#fff',
      xLineColor: '#fff',
      xFontColor: '#fff',
      xFontSize: 12,
      xSplitLine: false,
      yLineColor: '#fff',
      yFontColor: '#fff',
      yFontSize: 12,
      ySplitLine: false
    },
    data: {
      signalType: 'STATV',
      isReal: true,
      taskId: '',
      refreshTime: 10000
    },
    position: {
      left: 0,
      top: 0,
      width: 600,
      height: 300
    }
  }
}
